<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //字符串模板
        let s = `
            <div>
                <div>Hello</div>
            </div>
        `
        //console.log(s)

        //字符串插入变量和表达式
        let name = 'zyw'
        let age = 22
        //let info = `我是${name}，今年${age}岁`
        //let info = `我是${name+'~haha'}，今年${age+10}岁`
        let f = function(){
            return '我是方法'
        }
        let info = `我是${name+'~haha'}，今年${age+10}岁，${f()}`
        console.log(info)
    </script>
</head>
<body>

</body>
</html>